public class ConsDemo {
    public static void main(String[] args){
        Myclass t1=new Myclass();
        System.out.println(t1.getXValue());
        System.out.println(t1.y);
    }
}
class Myclass{
    private  int x;
    public  int y;
    Myclass(){
        x=10;
        y=11;
    }
    protected   int getXValue(){
        int z=x;
        return  z;
    }

}
//访问控制修饰符号 public protected privated 保护数据的安全性
